package com.huilian.iotbox.admin.wap.dao;

import com.huilian.iotbox.data.dto.LedgerMerchantDto;
import com.huilian.iotbox.data.dto.LedgerMerchantRecordDto;
import com.huilian.iotbox.data.po.LedgerMerchant;
import com.huilian.iotbox.data.vo.LedgerMerchantVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LedgerMerchantDao {
    List<LedgerMerchantVo> findAreaSubLedgerMerchant(LedgerMerchantDto ledgerMerchantDto);

    List<LedgerMerchantVo> findAreaSubLedgerMerchantByMerchantStoreId(LedgerMerchantDto ledgerMerchantDto);

    Integer inset(LedgerMerchant ledgerMerchant1);

    LedgerMerchant findOneLedgerMerchant(LedgerMerchantRecordDto ledgerMerchantRecordDto);

    Integer update(@Param("lm") LedgerMerchant ledgerMerchant);

    List<LedgerMerchantVo> findLedgerMerchantBy(LedgerMerchantDto ledgerMerchantDto);

    LedgerMerchantVo findOneExistLedgerMerchant(LedgerMerchantDto ledgerMerchantDto);

    List<LedgerMerchantVo> findLedgerMerchantByUserId(LedgerMerchantDto edgerMerchantDto);
}
